from myelin.Ns import MYELIN, DC

from myelin.rdf.bindery.Model import Model
from myelin.rdf.bindery.ObjectTypes import LiteralTypeO

from Document import Document

from ObjectTypes import \
    FileTypeO, FileTypeS, \
    SourceFileTypeO, SourceFileTypeS

from mappings import \
    SourceFileMap

class File(Document):
    
    ModelTypes = (FileTypeO, FileTypeS)
    
    RDF_BINDINGS = {
        'dcSource'          : ((DC, 'source'), SourceFileTypeO, SourceFileMap),
    }

    
CLASS_TYPES = {
    MYELIN + 'File' : File,
}